/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.utils;

import java.util.Vector;
import javax.swing.table.DefaultTableModel;

/**
 *  Table Model Personalizado
 * 
 * @author Kevlin Toshinari Ossada - 30/01/2013 - kevlin.ossada@fatec.sp.gov.br
 */
public class MeuTableModel extends DefaultTableModel {

    public MeuTableModel(Object rowData[][], Object columnNames[]) {
        super(rowData, columnNames);
    }

    @Override
    public Class getColumnClass(int col) {
        Vector v = (Vector) dataVector.elementAt(0);
        return v.elementAt(col).getClass();
    }

    @Override
    public boolean isCellEditable(int row, int col) {
        return false;
    }
}
